/*
https://www.nowcoder.com/practice/6abde6ffcc354ea1a8333836bd6876b8?tpId=37&&tqId=21320&rp=1&ru=/ta/huawei&qru=/ta/huawei/question-ranking
*/

#include <stdio.h>

int main() {
    int n = 0;
    scanf("%d",&n);
    int* arr = (int*)malloc(sizeof(int) * n);
    int count_pos = 0;
    int count_neg = 0;
    int sum = 0;
    for(int i = 0; i < n; i++)
    {
        scanf("%d",&arr[i]);
        if(arr[i] < 0) ++count_neg;
        if(arr[i] > 0) 
        {
            sum += arr[i];
            ++count_pos;
        }
    }
    double ave;
    if(count_pos > 0)
    {
        ave = sum / (double)count_pos;
    }
    printf("%d %.1f", count_neg,ave);
    
    return 0;
}